<?

if($model->id==0){
		$hidden['page_id']=$this->input->get('parent_id');
		$hidden['lang']=$this->session->get('lang');
		$page=ORM::factory('page', $this->input->get('parent_id'));
		$model->menutitle= $page->title;
		$model->windowtitle=$page->title;
	}else{
	
	}
?>

<div class='contentheader'>Page Meta</div>
<?
echo form::open(NULL, array(), $hidden);
echo form::open_fieldset();
echo myform::inputfield('menutitle','Menu Titel', $model->menutitle);
echo myform::inputfield('windowtitle','Window Titel',$model->windowtitle);
echo myform::textarea('description', 'Description', $model->description);
echo myform::textarea('keywords', 'Keywords', $model->keywords);
echo myform::dropdown('var1', 'Collectionid',array(''=>'none')+ORM::factory('collection')->select_list("id","title"), $model->var1);

echo form::close_fieldset();

echo myform::submit();

echo form::close();
?>